package cn.com.lyb.workflow.entity.dto;

import cn.hutool.json.JSONUtil;
import io.swagger.annotations.ApiModelProperty;

public class WorkflowJobDTO {

    @ApiModelProperty(value = "job_id，逻辑节点该值为空")
    private Long jobId;

    @ApiModelProperty(value = "code,唯一值区分")
    private Long code;

    @ApiModelProperty(value = "节点名称")
    private String jobName;

    @ApiModelProperty(value = "逻辑节点的子数据")
    private ConditionResultDTO conditionResult;

    @ApiModelProperty(value = "任务类型：1.sql 2. http 3. 逻辑节点")
    private String type;

    public Long getJobId() {
        return jobId;
    }

    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public ConditionResultDTO getConditionResult() {
        return conditionResult;
    }

    public void setConditionResult(ConditionResultDTO conditionResult) {
        this.conditionResult = conditionResult;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return JSONUtil.toJsonStr(this);
    }
}
